package com.six.core.controller;


import com.six.core.service.RolePermissionService;
import com.six.core.vo.PermissionVo;
import com.six.core.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Description:
 * @author:LiWei
 * @date:2023年02月27日18:52
 */
@RestController
@RequestMapping("/system/role")
public class RolePermissionController {

    @Autowired
    private RolePermissionService rolePermissionService;

    //确认分配权限
    @PostMapping("confirmPermission")
    public Result confirmPermission( Integer roleId,  Integer[] pIds){

        System.out.println(pIds);

         return rolePermissionService.confirmPermission(roleId, pIds);
    }


}
